﻿using System;

namespace ProjectMain
{

    public class SubMenu
    {
        public static void SubMenuOptions(string username)
        {

            username = ClassGlobalVar.GlobalVar;

            Console.WriteLine("WELCOME TO  EPOMS  {0} ", username);


            //Display main menu options and get user's input 
            System.Console.WriteLine("Please enter one of the following options\n");

            System.Console.WriteLine("1. Employee Vacation Management\n");
            System.Console.WriteLine("2. Product Management\n");
            System.Console.WriteLine("3. Emplyee-Product Ownership Management\n");

            System.Console.Write("Your Option: ");

            //  Integrate one Farida is implementing

            int mainUserInput = Int32.Parse(System.Console.ReadLine());


            
            switch ((mainUserInput))
            {
                case 1:

                    System.Console.WriteLine("You entered Employee Vacation Management............\n");
                    EmployeeVacations.EmployeeVacationsOptions(username);
                    break;

                case 2:
                    System.Console.WriteLine("You entered Emplyee-Product Ownership Management............\n");

                    ClassProd_Mgmt.Prod_Mgmt(username);
                    break;


                case 3:

                    System.Console.WriteLine("You entered Product Management............\n");

                    ClassAdminEmpMgmt.AdminEmpMgmt(username);
                    break;


                    
            }



        }




    }
}
